package com.dragon.modules.yuegou.mapper.park;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.dragon.modules.yuegou.entity.park.HistoryEntity;
import com.dragon.modules.yuegou.model.park.ParkReportQuery;
import com.dragon.modules.yuegou.model.park.ParkingReportModel;
import org.springframework.stereotype.Component;

import java.util.List;
import java.util.Map;
/**
 * 历史停车信息表 Mapper接口
 *
 * @author px
 * @date 2019-03-27 14:45:59
 * @version 2.0
 */
@Component("parkHistoryMapper")
public interface HistoryMapper extends BaseMapper<HistoryEntity> {


    ParkingReportModel getParkEnterAndOutTotal(ParkReportQuery reportQuery);

    List<Map<Integer,Integer >> getOutForHour(ParkReportQuery reportQuery);

    List<Map<Integer,Integer >> getEnterForHour(ParkReportQuery reportQuery);

    Map<String,Object > getParkTimeInfo(ParkReportQuery reportQuery);

    List<Map<String,Object >> getParkTimeInfoByHour(ParkReportQuery reportQuery);
}
